//配置路由表
import React from "react";

let Home =React.lazy(()=>import('../pages/home/Index'))
let Detail =React.lazy(()=>import('../pages/detail/Index'))
let Search =React.lazy(()=>import('../pages/search/Index'))

let routes = [
    {
        path:'/',
        element:<Home></Home>
    },
      {
        path:'/detail/:id',
        element:<Detail></Detail>
    },
      {
        path:'/search',
        element:<Search></Search>
    }
]

export default routes